package dhy.com.service;

import dhy.com.AjaxResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient("DHY-SERVICE-SMS")
public interface SmsService {
    @PostMapping("/sms/send")
    AjaxResponse send(@RequestParam("phoneNo") String phoneNo, @RequestParam("content") String content);
}